package net.dodoman.decoration;
/**
 * 装饰者:Sugar
 * @author yanping
 *
 */
public class Sugar implements Beverage {
	Beverage beverage;

	@Override
	public float cost() {
		return 2 + beverage.cost();
	}

	public Sugar(Beverage beverage) {
		this.beverage = beverage;
	}
}
